package com.fhzn.boss.web.request;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 老顾
 * @apiNote
 * @since 2024/1/19
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GrantUserDataResourceRequest extends BaseRequest {

    /**
     * 目标用户组
     */
    @NotEmpty(message = "目标用户不能为空")
    private List<String> targetUsers;


    /**
     * 数据资源类型 目前一次只允许操作一种资源类型
     */
    @NotNull(message = "资源类型只能为1或者2")
    private Integer resourceType;

    /**
     * 资源code
     */
    @NotEmpty(message = "数据资源不能为空")
    private String code;

    @Override
    public Object genServiceParam() {
        return null;
    }
}
